#include "../../common/detail.hpp"
#include "../../client/client.hpp"
#include "../../client/rpc_topic.hpp"

int main()
{
    //发布客户端
    qiangsir::client::TopicClient::ptr client = std::make_shared<qiangsir::client::TopicClient>("127.0.0.1",8080);
    //创建主题
    bool ret = client->create("音乐");
     if (ret == false) 
     {
        ELOG("主题创建失败");
     }
    //发布
   for(int i = 0;i < 5;i++)
   {
     client->publish("音乐","hello"+ std::to_string(i));
   }
    client->onShutdown();
    return 0;

}